package com.showgood.vo;
import flash.utils.ByteArray;
import java.io.IOException;
public class ArmySetupVO extends BaseVO {
public int type;
public int[] army;
public int lineup;
public int start;
public int dest;
public int amount;
@Override
public int getVid() { return 12; }
@Override public void pack(ByteArray b) throws IOException {
super.pack(b);
b.writeInt(this.type);
b.writeShort(army.length);
for(int i = 0; i < army.length; i++) {
b.writeInt(this.army[i]);
}
b.writeInt(this.lineup);
b.writeInt(this.start);
b.writeInt(this.dest);
b.writeInt(this.amount);
}
@Override public void unpack(ByteArray b) throws IOException {
super.unpack(b);
this.type = b.readInt();
int _iarmy = b.readShort();
this.army = new int[_iarmy];
for(int i = 0; i < _iarmy; i++) {
this.army[i] = b.readInt();
}
this.lineup = b.readInt();
this.start = b.readInt();
this.dest = b.readInt();
this.amount = b.readInt();
}
}
